/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.test.gui.swing.components.dialog;

import com.test.gui.swing.components.button.BtnCmdOk;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 *
 * @author rgil
 */
public class DlgBoxInfo extends DlgBoxAbs implements ActionListener{

    public DlgBoxInfo(String txtInfo){
        super(txtInfo);
        this.setTitle("Info box");
    }


    @Override
    public void actionPerformed(ActionEvent e) {
        if (e.getSource() instanceof BtnCmdOk)
        {
            this.dispose();
        }
        else
        {
            super.actionPerformed(e);
        }
    }

}
